package com.sg.dto.base.component.common;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


/**
 * @desc OpenConfItemResultDto
 * @使用场景
 */
@Data
public class OpenConfItemResultDto extends BaseDto implements Serializable {

    /**
     * 配置结果归属对象ID:
     */
    @ApiModelProperty("配置结果归属对象ID")
    private String resultAspObjId;

    /**
     * 配置项下选项关系ID:
     */
    @ApiModelProperty("配置项下选项关系ID ")
    private String confOptionRshipId;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        OpenConfItemResultDto that = (OpenConfItemResultDto) o;
        return resultAspObjId == that.resultAspObjId && confOptionRshipId == that.confOptionRshipId;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), resultAspObjId, confOptionRshipId);
    }

}
